package com.anolesoft.amljmes.fortysix.service.impl;

import com.anolesoft.amljmes.fortysix.dto.MesBzzPtdDto;
import com.anolesoft.amljmes.fortysix.dto.MesBzzPtjhDto;
import com.anolesoft.amljmes.fortysix.service.info.MesBzzQtfxService;
import com.anolesoft.amljmes.fortysix.service.mapper.MesBzzQtfxServiceMapper;
import com.anolesoft.amljmes.fortysix.controller.MesBzzQtfxController;
import com.anolesoft.yr.util.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MesBzzQtfxServiceImpl implements MesBzzQtfxService {
    @Autowired
    MesBzzQtfxServiceMapper mesBzzQtfxServiceMapper;

    @Override
    public List<MesBzzPtdDto> queryMesBzzQtfxInfo(MesBzzQtfxController.DemoVO demoVO) {
        List<MesBzzPtdDto> queryMesBzzQtfxDto=mesBzzQtfxServiceMapper.queryMesBzzQtfxSQL(demoVO);
        return queryMesBzzQtfxDto;
    }

    @Override
    public List<MesBzzPtdDto> queryMesBzzQjbjInfo(MesBzzQtfxController.DemoVO demoVO) {
        List<MesBzzPtdDto> queryMesBzzQjbjDto=mesBzzQtfxServiceMapper.queryMesBzzQjbjSQL(demoVO);
        return queryMesBzzQjbjDto;
    }

    @Override
    public List<MesBzzPtdDto> queryMesBzzPtfbInfo(MesBzzQtfxController.DemoVO demoVO) {
        List<MesBzzPtdDto> queryMesBzzPtfbDto=mesBzzQtfxServiceMapper.queryMesBzzPtfbSQL(demoVO);
        return queryMesBzzPtfbDto;
    }

    @Override
    public int updateMesBzzPtjh(MesBzzPtjhDto inFoDtoParam) {
        int count = mesBzzQtfxServiceMapper.updateMesBzzPtjh(inFoDtoParam);
        return count;
    }

    @Override
    public int deleteMesBzzQtfx(MesBzzPtdDto inFoDtoParam) {
        int count = mesBzzQtfxServiceMapper.deleteMesBzzQtfx(inFoDtoParam);
        return count;
    }

    @Override
    public int updateMesBzzQtfx(List<String> objuids) {
        int count = 0;
        for(String objuid : objuids) {
            count += mesBzzQtfxServiceMapper.updateMesBzzQtfx(objuid);
        }
        return count;
    }

    @Override
    public int updateMesBzzPtfb(List<String> objuids) {
        int count = 0;
        for(String objuid : objuids) {
            count += mesBzzQtfxServiceMapper.updateMesBzzPtfb(objuid);
        }
        return count;
    }

    @Override
    public int updateIsItComplete1(String objuid) {
        return mesBzzQtfxServiceMapper.updateIsItComplete1(objuid);
    }

    @Override
    public int updateIsItComplete(String objuid) {
        return mesBzzQtfxServiceMapper.updateIsItComplete(objuid);
    }

    @Override
    public List<MesBzzPtdDto> querydmingxi(String objuid) {
        return mesBzzQtfxServiceMapper.querydmingxi(objuid);
    }

}
